package com.yuncheng.spcyApi.constant.myd;

import com.yuncheng.spcyApi.constant.common.SpcyConstant;
import org.apache.commons.lang3.StringUtils;

/**
 * 检查员廉洁自律和满意度基本信息 变量
 * @author hua
 */
public class SpcyMyddcConstant {

    // 满意度调查问卷提交状态
    public final static String LJZL_MYD_SFTJ_NO = "未提交";
    public final static String LJZL_MYD_SFTJ_YES = "已提交";

    // 广西食品药品审评查验中心顾客满意度调查问卷及描述
    public final static String DICT_CODE_MYD_WJ_TITLE = "myddcwjbt";  // 评价顾客满意度调查问卷

    public final static String DICT_CODE_MYD_QY_LX = "ljzlmydxz001"; // 廉洁自律满意度性质 (企业类型)

    public final static String DICT_CODE_ZXPJ_TITLE = "jcyljzlmydwj001"; // 检查员廉洁自律满意度问卷对中心评价标题
    public final static String DICT_CODE_ZXPJ_DJ = "ljzlzxpjdj001"; // 廉洁自律中心评价等级

    public final static String DICT_CODE_JCZPJ_TITLE = "jcyljzlmydjczpj001"; // 检查员廉洁自律满意度问卷对检查组评价标题
    public final static String DICT_CODE_JCZPJ_DJ = "djczpjdj001"; // 对检查组评价等级



    /** 廉洁自律和满意度调查问卷-相关性质 */
    public static String getLjzlMydXzByYwfl(String fywflcode){
        if (StringUtils.isBlank(fywflcode)){
            return "";
        }
        if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPSC)){
            return "药品生产企业";
        }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPZC)){
            return "药品生产企业";
        }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YPJY)){
            return "药品经营企业";
        }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_YLQX)){
            return "医疗器械生产企业";
        }else if (fywflcode.equals(SpcyConstant.YWFL_CODE_HZP)){
            return "化妆品生产企业/备案人";
        } else {
            return "";
        }
    }

    public final static String MYD_QT_XZ = "其他";

}
